import request from '@/utils/request'

export function register(data) {
  return request({
    url: '/register',
    headers: {
      isToken: false,
    },
    method: 'post',
    data: data,
  })
}
export function getCodeImg() {
  return request({
    url: '/captchaImage',
    headers: {
      isToken: false,
    },
    method: 'get',
    timeout: 20000,
  })
}

export function listConfig(query) {
  return request({
    url: '/system/config/list',
    method: 'get',
    params: query,
  })
}
